// 链接mongodb数据库
const mongoose = require('mongoose');
const url = 'mongodb://localhost:27017/CJShop';
mongoose.connect(url)

module.exports = mongoose; // 链接好的mongodb